package com.adingxiong.cft.design;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import liquibase.pro.packaged.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName StrategyModeController
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/6/24 14:37
 **/
@RestController
@Api(tags = "设计模式测试类")
@RequestMapping("/mode")
public class DesignModeController {

    @Autowired
    private  StrategyMode strategyMode;

    @ApiOperation(value = "策略模式解决if-else")
    @GetMapping("/strategy")
    public String StrategyMode(String order){


        return strategyMode.getCheckResultSuper(order);


    }

}
